﻿using System.Windows;
using System.Windows.Input;

namespace Hesehus
{
    public partial class StartUp
    {
        #region Field

        public bool windowState = true; 

        #endregion

        #region Creation

        public StartUp()
        {
            InitializeComponent();
            Content = new Navigation(this);
        } 

        #endregion

        #region Custom window handlers
        
        public void Close(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        }

        public void DragMove(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        public void Minimize(object sender, MouseButtonEventArgs e)
        {
            WindowState = WindowState.Minimized;
        }

        public void Normal(object sender, MouseButtonEventArgs e)
        {
            if (windowState)
            {
                WindowState = WindowState.Maximized;
                windowState = false;
            }
            else
            {
                WindowState = WindowState.Normal;
                windowState = true;
            }
        }
        #endregion

    }
}
